package com.cjkj.equipment.mapper;

import com.cjkj.equipment.domain.EquipmentMonitorRecordsRealtime;
import org.apache.ibatis.annotations.Param;

/**
 * 设备实时数据记录Mapper接口
 * 
 * @author cjkj
 * @date 2024-08-15
 */
public interface EquipmentMonitorRecordsRealtimeMapper {

    EquipmentMonitorRecordsRealtime selectByProductIdAndEquipmentNo(@Param("productId") String productId, @Param("equipmentNo") String equipmentNo);

    EquipmentMonitorRecordsRealtime selectRealtimeData(@Param("equipmentNo") String equipmentNo);

    /**
     * 新增设备实时数据记录
     * 
     * @param equipmentMonitorRecordsRealtime 设备实时数据记录
     * @return 结果
     */
    int insertEquipmentMonitorRecordsRealtime(EquipmentMonitorRecordsRealtime equipmentMonitorRecordsRealtime);

    /**
     * 修改设备实时数据记录
     * 
     * @param equipmentMonitorRecordsRealtime 设备实时数据记录
     * @return 结果
     */
    int updateEquipmentMonitorRecordsRealtime(EquipmentMonitorRecordsRealtime equipmentMonitorRecordsRealtime);
}
